<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<link rel="stylesheet" href="__app__/admin/view/MarketSign/signConfigPage/signConfigPage.css" />
<body>
<!---------------- 修改签到积分值 ------------------->
<!-- 页头 -->
{include file="common/page/header"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont">{$Think.session.currentMenu.icon}</i>签到积分配置
                <div class="operation-div">
                {if $is_sign eq '1'}
                    <a href="addSign" class="btn btn-success">添加</a>
                {/if}
                    <a href="javascript:window.history.go(-1);" class="btn btn-default">返回</a>
                </div>
            </h3>
            <div class="inner-section row">
                <div class="list-title">
                    <div class="list-title-panel">
                        <span class="glyphicon glyphicon-list"></span>列表</span>
                    </div>
                </div>
                <div class="item table-responsive">
                    <table id="list-table" class="table table-striped table-hover table-bordered table-base">
                        <tbody>
                        <tr>
                            <th>连续签到天数</th>
                            <th>积分值</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                    {if $signList}
                    {foreach name="signList" item="sign" key="num"}
                        <tr>
                            <td>{$sign.days}</td>
                            <td>{$sign.points}</td>
                            <td>{$sign.add_time}</td>
                            <td>
                                <a class="edit btn btn-primary btn-xs" href="editSign?id={$sign.id}">编辑</a>
                            {if $num neq '0'}
                                <a href="javascript:;" class="delete btn btn-default btn-xs" data-id="{$sign.id}">删除</a>
                            {/if}
                            </td>
                        </tr>
                    {/foreach}
                    {else}
                        <tr><td colspan="4"><p class="text-danger">暂无数据。</p></td></tr>
                    {/if}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}
<!-- jsfiles -->
{include file="common/page/jsfiles"}

<script type="text/javascript" src="__static__/js/form/jquery.form.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.extend.js"></script>
<script type="text/javascript" src="__app__/admin/view/MarketSign/signConfigPage/signConfigPage.js"></script>
</body>
</html>